package com.yqd.controller;

import com.yqd.config.WxPayConfig;
import com.yqd.entity.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api("测试控制器")
@RequestMapping("/api/test")
public class TestController {

    @Autowired
    private WxPayConfig wxPayConfig;

    @GetMapping("/get-wx-pay-config")
    public R getWxPayConfig(){
        return R.ok().data("wechat-pay-config",wxPayConfig.toString());
    }

}
